/**
** Created by Kstar on 2022/1/12.
**/

//

#ifndef HELLOWORLD_FOOD_H
#define HELLOWORLD_FOOD_H


#include "Plant.h"
#include "Animal.h"

#define debug(a) cout<<(a)<<endl;
#define debug2(a, b) cout<<(a)<<","<<(b)<<endl;
#define debug3(a, b, c) cout<<(a)<<","<<(b)<<","<<(c)<<endl;


class Food :public Plant,public Animal{

    //食物提供的能量
    int energy;
public:
    Food(int cx, int cy, int cTime, int cspeed, int csex, int catk, int clife,
         int cendurance,int cenergy);

    //被吃掉后的函数
    void eatten(Animal &animal);
};


#endif //HELLOWORLD_FOOD_H
